home *** CD-ROM | disk | FTP | other *** search
/ One Click 21 (Special) / OC021.iso / Juegos / King of Skeleton / King of Skeleton.swf / scripts / DefineSprite_421 / frame_1 / DoAction.as
Encoding:
Text File  |  2006-02-02  |  331 b   |  18 lines

  1. function setupSnow(t)
  2. {
  3.    t.yVel = -5.5 + Math.random() * 16;
  4.    t.xVel = 25;
  5.    t._rotation = Math.random() * 180;
  6.    t.rotVel = Math.random() * 11 - 5;
  7. }
  8. function doSnow(t)
  9. {
  10.    t._x -= t.xVel;
  11.    t.yVel *= 1.3;
  12.    t.yVel += 2;
  13.    t._y += t.yVel;
  14.    t._rotation += t.rotVel;
  15. }
  16. startShake = 169;
  17. endShake = 189;
  18.